package com.jianyushe.jianyushebasecommon.exception;

import com.jianyushe.jianyushebasecommon.enums.ErrorEnums;

/**
 * @author Create by Alvin
 * @Description 参数错误异常，采用异常抛出的方式处理错误信息
 * @date 2022-04-23 10:34
 */
public class ParameterException extends CommonException{
    public ParameterException(String message) {
        super(message);
    }

    public ParameterException(String errorCode, String message) {
        super(errorCode, message);
    }

    public ParameterException(ErrorEnums errorEnums){
        super(errorEnums.getCode(), errorEnums.getMsg());
    }
}
